import { createRouter, createWebHashHistory } from 'vue-router'
import { mobileRoutes } from '@/router/mobileRoutes'
import { pcRoutes } from '@/router/pcRoutes'
import { isMobile } from '@/utils/isMobile'

const routes = isMobile() ? mobileRoutes : pcRoutes

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
